//
//  XUITapSwitchViewController.m
//  nav
//
//  Created by wjxfhxy on 15-6-20.
//  Copyright (c) 2015年 wjxfhxy. All rights reserved.
//

#import "XUITapSwitchViewController.h"

@interface XUITapSwitchViewController ()

@end

@implementation XUITapSwitchViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (NSUInteger)defaultCreateIndexOfViewControllerClass
{
    return 0;
}

- (BOOL)lazyCreateDefaultIndexOfViewControllerClass
{
    return NO;
}

- (void)updateViewControllerNavigationItem:(UINavigationItem*)navigationItem
{
}

- (void)createViewControllerClassAtIndex:(NSUInteger)index block:(void(^)(Class cls,XUIViewControllerSwitchParam* param))block
{
    
}

- (void)createAllViewControllerClass
{
    
}

- (void)createDefaultIndexOfViewControllerClass
{
    
}

- (void)viewControllerDidExchangeZLevel
{
    
}

- (NSUInteger)numberOfSwitchViewController
{
    return 0;
}

//- (CGSize)actualContentVisiableSize
//{
//    return self.view.size;
//}

- (UIEdgeInsets)actualContentInset
{
    return UIEdgeInsetsZero;
}

- (void)recvPopViewControllerSwitchParam:(XUIViewControllerSwitchParam *)switchParam
{
    [[self topViewController] recvPopViewControllerSwitchParam:switchParam];
}

- (void)viewControllerWillMoveAppear
{
    [[self topViewController] viewControllerWillMoveAppear];
}

- (void)viewControllerDidMoveAppear
{
    [[self topViewController] viewControllerDidMoveAppear];
}


- (void)viewControllerWillMoveReappear
{
    [[self topViewController] viewControllerWillMoveReappear];
}

- (void)viewControllerDidMoveReappear
{
    [[self topViewController] viewControllerDidMoveReappear];
}


- (void)viewControllerWillMoveDisappear
{
    [[self topViewController] viewControllerWillMoveDisappear];
}

- (void)viewControllerDidMoveDisappear
{
    [[self topViewController] viewControllerDidMoveDisappear];
}


-(void)viewControllerWillMoveDealloc
{
    [super viewControllerWillMoveDealloc];
    
    [self enumViewController:^(UIViewController *viewController, NSUInteger idx, BOOL *stop)
    {
        [viewController viewControllerWillMoveDealloc];
    }];
}

-(void)viewControllerDidMoveDealloc
{
    [super viewControllerDidMoveDealloc];
    
    [self enumViewController:^(UIViewController *viewController, NSUInteger idx, BOOL *stop)
    {
        [viewController viewControllerDidMoveDealloc];
    }];
}

-(void)viewControllerWillDealloc
{
    [super viewControllerWillDealloc];
    
    [self enumViewController:^(UIViewController *viewController, NSUInteger idx, BOOL *stop)
    {
        [viewController viewControllerWillDealloc];
    }];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
